cmake_minimum_required (VERSION 2.6)
project (Squirrelbind)


include_directories(include)
include_directories(../SQUIRREL3/include)

set(SRCS
	src/sqbPrecompiled.cpp
	src/sqbPrecompiled.h
	src/sqbAssert.cpp
	src/sqbBind.cpp
	src/sqbClassHelpers.cpp
	src/sqbClassTypeTag.cpp
	src/sqbScopedArrayAccess.cpp
	src/sqbScopedTableAccess.cpp
	src/sqbSquirrelFunction.cpp
	src/sqbSquirrelObject.cpp
	src/sqbSquirrelVM.cpp
	src/sqbStackHandler.cpp
	src/sqbTableIterator.cpp
)

ADD_DEFINITIONS(-std=c++0x)
ADD_DEFINITIONS(-DSQBIND_STATIC)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)

add_library(sqbind ${SRCS})

set_target_properties(sqbind PROPERTIES DEBUG_POSTFIX _d)
